package com.guigu.www.controller;


import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.guigu.www.pojo.TInterposePlain;
import com.guigu.www.service.TInterposePlainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;
import com.guigu.www.mapper.TInterposePlainMapper;
import com.guigu.www.pojo.TInterposePlain;
import com.guigu.www.service.TInterposePlainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import org.springframework.stereotype.Controller;

import java.util.List;

/**
 * <p>
 * 干预计划表
 前端控制器
 * </p>
 *
 * @author yb
 * @since 2021-06-29
 * @since 2021-06-23
 */
@RestController
@CrossOrigin
public class TInterposePlainController {

    @Autowired
    private TInterposePlainService tInterposePlainService;
    @PostMapping("show")
    public List<TInterposePlain> show(){
        List<TInterposePlain> tInterposePlains = tInterposePlainService.selectList(new EntityWrapper<TInterposePlain>());
        return tInterposePlains;
    }
    @PostMapping("gyjh")
    public List<TInterposePlain> gyjh(@RequestBody TInterposePlain tInterposePlain){
        List<TInterposePlain> showid = tInterposePlainService.showid(tInterposePlain.getTMemberId());
        return showid;
    }
}

